package com.wzy.util;

/**
 * 文章工具类
 *
 * @author ultima
 */
public class ArticleUtils
{
    private ArticleUtils()
    {
    }

    public static long getArticleScore(Long viewCount, Long like, Long collection)
    {
        if (viewCount < 1 || like < 0 || collection < 0)
        {
            throw new IllegalArgumentException("参数错误");
        }
        return viewCount / 10 + like + collection * 2;
    }

}
